package com.itheima.mq;

import org.springframework.amqp.core.ExchangeTypes;
import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitCountListener {
    @RabbitListener(queues = "count.queue")
    public void listenerDirectQueue1(String message){
        System.out.println("count消费 = " + message);
    }
}
